<?php

namespace app\api\model;

use think\Model;

class Swiper extends Model
{

    // 表名
    protected $name = 'swiper';

   

    public function getImageAttr($value)
    {
        if (!strpos($value, '//')) {
            return request()->domain() . $value;
        }
        return $value;
    }
    
}
